Ends the running scene at once, regardless of whether it was authored skippable (a harmless no-op if none is running).
cutscene_stop()Nothing.
Ends the running scene at once, regardless of whether it was authored skippable (a harmless no-op if none is running).
Ending a scene this way restores the camera to whatever it was following (or not) the instant cutscene_start ran. If a scene's own PAN steps moved it away from the player, the camera goes right back to following the player once the scene ends - even though every PAN step calls the same camera primitive that cancels any follow mode the instant it runs, the engine remembers what that follow was and puts it back. If nothing was being followed to begin with, ending the scene leaves the camera exactly where the scene left it, unchanged.
Want the camera left free instead of handed back? Call camera_unfollow yourself from a Step event once cutscene_active reads false - that's the one line of project code needed for the case this function doesn't guess at.
Nothing about a CREATE_ENTITY step's own instance is touched either - it is already an ordinary, permanent room instance by the time the scene ends, exactly as if it had been placed in the room to begin with. Every particle system a scene's own FX_START steps began, that was not authored to persist past the scene, is stopped.
cutscene_start refuses to interrupt a scene that is already playing - the explicit way to replace one is this function followed by a new cutscene_start:
cutscene_stop();
cutscene_start(cs_doc_retry);cutscene_stop();Ends whatever scene is currently playing, immediately, whether or not it was authored skippable - a harmless no-op if nothing is playing, so it is always safe to call unconditionally (a "cancel and reset" debug binding, say, or a project's own hard story-branch cutoff).
Restores the camera to whatever it was following (or not) the instant cutscene_start() ran, automatically (section 6.2) - even though every PAN step already calls camera_set() itself, which silently cancels any follow that was active, the engine remembers what that follow was and puts it back once the scene ends. Want the camera left free instead? Call camera_unfollow() yourself from a Step event once cutscene_active() reads false. Does not touch any instance a CREATE_ENTITY step made either - it is already an ordinary, permanent room instance by the time the scene ends. DOES stop every particle system an FX_START step began that was not authored to persist. To interrupt one scene with a different one, call this then cutscene_start(next) - two explicit calls, never one call that silently means two different things depending on hidden state.